# -*- coding: utf-8 -*-
from datetime import datetime
from django.db import models
from stdimage.fields import StdImageField

class Colaborador(models.Model):
    publicar=models.BooleanField(default=True)
    nome=models.CharField(max_length=50)
    cargo=models.CharField(max_length=50)
    email=models.EmailField()
    telefone=models.CharField(max_length=12,help_text='XX-XXXX-XXXX')
    thumbs=StdImageField(upload_to='thumb',help_text='85px-85px')
    imagem=StdImageField(upload_to='parceiros')
    imagem1=StdImageField(upload_to='parceiros')
    descricao=models.TextField()
    orkut=models.URLField("Orkut", blank=True, null=True)
    twitter=models.URLField("Twitter", blank=True, null=True)
    facebook=models.CharField(max_length=200, blank=True, null=True)
    linkedin=models.URLField("LinkedIn", blank=True, null=True)
    google=models.CharField(max_length='200',blank=True,null=True)
    data = models.DateTimeField('Data de publicação',default=datetime.now)
    publicar=models.BooleanField(default=True)

    class Meta:
        verbose_name_plural = "Colaboradores"
    def __unicode__(self):
        return self.nome